//
//  SongObject.m
//  Karaoke
//
//  Created by Ka Leung Ke on 11-10-8.
//  Copyright 2011年 __MyCompanyName__. All rights reserved.
//

#import "SongObject.h"

@implementation SongObject
{
    NSString * _language;
}

@synthesize songCode, songName, singerId1, singerId2, singerName1, singerName2, songSource;
@synthesize isSelected;
@synthesize language;

- (id) init
{
    self = [super init];

    if (self)
    {
        // Initialization code here.
        self.isSelected = NO;
    }

    return self;
}

- (void) setLanguage:(NSString *)alanguage
{
    /*
       1,国语
       2,粤语
       3,闽南
       4,日语
       5,韩语
       6,英语
       7,马来
       8,印尼
       9,潮州
       10,客家
       11,泰国
       12,越南
       13,菲律宾
       14,印度
       15,缅甸
       16,其他
     */
    switch (alanguage.intValue)
    {
        case 1:
            _language = @"国语";
            break;

        case 2:
            _language = @"粤语";
            break;

        case 3:
            _language = @"闽南";
            break;

        case 4:
            _language = @"日语";
            break;

        case 5:
            _language = @"韩语";
            break;

        case 6:
            _language = @"英语";
            break;

        case 7:
            _language = @"马来";
            break;

        case 8:
            _language = @"印尼";
            break;

        case 9:
            _language = @"潮州";
            break;

        case 10:
            _language = @"客家";
            break;

        case 11:
            _language = @"泰国";
            break;

        case 12:
            _language = @"越南";
            break;

        case 13:
            _language = @"菲律宾";
            break;

        case 14:
            _language = @"印度";
            break;

        case 15:
            _language = @"缅甸";
            break;

        case 16:
            _language = @"其他";
            break;

        default:
            break;
    }
}

- (NSString *) language
{
    return _language;
}

@end